<%--
  Created by IntelliJ IDEA.
  User: HW
  Date: 2018/4/19
  Time: 1:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <script type="text/javascript" src="../../js/jquery-1.11.0.js"></script>
    <script type="text/javascript" src="../../js/jquery-migrate-1.2.1.js"></script>
    <script src="../../js/jquery.js"></script>
</head>
<body style="background: cornflowerblue;">
<div  style="height: 100%;width: auto;" align="center" >

        <table border="0" style="margin-top: 20%;" id="usertable">
            <form action="/user/login" method="post">
            <tr>
                <td><h1>乡镇图书管理系统登录</h1></td>
            </tr>
            <tr align="center">
                <td><p>用户名:<input id="username" name="username" type="text"/></p></td>
            </tr>
            <tr align="center">
                <td><p>密&nbsp;码:<input id="password" name="password" type="password"/></p></td>
            </tr>
            <tr align="center">
                <%--<td align="right"><p><a href="login.jsp" style="margin-right: 40px">忘记密码</a></p></td>--%>
            </tr>
            <tr align="center">
                <td align="center"> <input type="submit" value="登录">
                    <input type="button" value="注册" onclick="register()"></td>
            </tr>
            </form>
        </table>
</div>
</body>
<script type="text/javascript">
    function register() {
        window.location.href="${pageContext.request.contextPath}/user/toregister";
    }
</script>
</html>
